package com.hospital.phyexam.controller;

import com.hospital.phyexam.service.PhyexamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PhyexamController {

    @Autowired
    PhyexamService phyexamService;

    @RequestMapping(value = "test", produces = "application/json;charset=utf-8",method = RequestMethod.GET)
    @ResponseBody
    public String testgetByNum() {
        return phyexamService.getByNum("20181123");
    }
}
